package com.xzy.spring.demo.factorybean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author xzy
 * @date 2021/2/8 21:56
 * 说明：
 */
public class MyFactoryBean implements FactoryBean<ActualBean> {
    @Override
    public ActualBean getObject() throws Exception {
        return new ActualBean("actualBean");
    }

    @Override
    public Class<?> getObjectType() {
        return ActualBean.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
